package umacis.data.view;

import com.sun.lwuit.Container;
import com.sun.lwuit.Dialog;
import com.sun.lwuit.Form;
import com.sun.lwuit.util.Log;


import umacis.data.description.ApplicationViewDescription;
import umacis.lwuitcomponent.property.Properties;

public class ApplicationView extends View {
	ApplicationViewDescription viewDescription;

	public ApplicationView(ApplicationViewDescription viewDescription) {
		this.viewDescription = viewDescription;
	}
	
	public void show(Properties propertiesToImpose) {
		if (form ==  null) {
			form = viewDescription.build(propertiesToImpose);
		}
		Log.p("Showing :" + viewDescription.getUniqueName(), Log.INFO);
		form.show();
		
	}

}
